﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.IO;
using System.Windows.Forms;

namespace Athena.Plugins
{
    public partial class CustomnReactionWindow : Form
    {
        public CustomnReactionWindow()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            try
            {
                StreamWriter writer = new StreamWriter(new FileStream("ratelaws.txt", FileMode.Append));
                writer.WriteLine(nameText.Text + ";" + rateText.Text + ";" + modifierText.Text + ";" + paramsText.Text);
                writer.Close();
                Close();
            }
            catch (Exception)
            {
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            rateText.Clear();
            modifierText.Clear();
            paramsText.Clear();
        }
    }
}
